projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08fbfa
)
docs: Mention the GtkWidget.destroy vfunc
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 11 Jun 2021 14:11:53 +0000
(10:11 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 11 Jun 2021 14:11:53 +0000
(10:11 -0400)
Mention GtkWidget.destroy in the migration guide.
docs/reference/gtk/migrating-3to4.md
patch
|
blob
|
history
diff --git
a/docs/reference/gtk/migrating-3to4.md
b/docs/reference/gtk/migrating-3to4.md
index ff2337e18f61aa52158ad47d4c2dc1911387d496..3779465b357df0f8ff4bd0d7862aaaea044445be 100644
(file)
--- a/
docs/reference/gtk/migrating-3to4.md
+++ b/
docs/reference/gtk/migrating-3to4.md
@@
-243,6
+243,10
@@
in GTK 3, you can prepare for the switch by using `gtk_widget_destroy()`
only on toplevel windows, and replace all other uses with
`gtk_container_remove()` or `g_object_unref()`.
+### Stop using the GtkWidget.destroy vfunc
+
+Instead of implementing GtkWidget.destroy, you can implement GObject.dispose.
+
### Reduce the use of generic container APIs
GTK 4 removes `gtk_container_add()` and `gtk_container_remove()`. While there